package com.itheima.web.service.impl.ums;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.service.ums.ResourceCategoryService;
import com.itheima.utils.ResultData;
import com.itheima.vo.ums.ResourceCategory;
import com.itheima.web.mapper.ums.ResourceCategoryMapper;
import org.apache.dubbo.config.annotation.DubboService;

import java.time.LocalDateTime;

@DubboService
public class ResourceCategoryServiceImpl extends ServiceImpl<ResourceCategoryMapper , ResourceCategory> implements ResourceCategoryService {

    @Override
    public ResultData insert(ResourceCategory resourceCategory) {
        resourceCategory.setCreateTime(LocalDateTime.now());
        this.save(resourceCategory);
        return ResultData.ok("","");
    }
}
